package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.CheckGroup;
import com.itheima.pojo.Setmeal;

import java.util.List;
import java.util.Map;

public interface SetMealDao {

    //添加新的检查套餐
    public void add(Setmeal setmeal);

    //在中间表中添加新的检查套餐和检查组关联项
    public void addNewCheckGroupAndSetMeal(Map<String,Integer> map);

    //分页查询
    public Page<Setmeal> findByCondition(String queryString);

    //查询所有的检查套餐
    public List<Setmeal> getSetMeal();

    //根据id查询套餐
    public Setmeal findById(Integer id);

    //查询套餐的名称及数量
    public List<Map<String,Object>>findSetmealCount();

}
